using System;
using System.ComponentModel;
using System.Data;
using System.Runtime.Serialization;

namespace MinCultura.Sipa.DataAccess.EntidadesArtes
{
	/// <summary>
	/// A custom serializable dataset containing 
	/// </summary>
	[Serializable()]
	[DesignerCategory("code")]


	/// <summary>Class for handling datasets</summary>  
		public class MinoriasEtnicasEntidadData : DataTable
	{
		///
		/// Constants for table and fields mapping
		///
		public const string ART_MINORIAS_ETNICAS_ENTIDAD_TABLE = "ART_MINORIAS_ETNICAS_ENTIDAD";

		public const string ENT_ID_FIELD = "ENT_ID";
		public const string MET_ID_FIELD = "MET_ID";


		protected MinoriasEtnicasEntidadData(SerializationInfo info, StreamingContext context)
		{
			//
		}

		public MinoriasEtnicasEntidadData()
		{
			BuildDataTables();
		}

		/// <summary>
		/// Creates the following datatables: Localidades
		/// </summary>
		private void BuildDataTables()
		{
			this.TableName = ART_MINORIAS_ETNICAS_ENTIDAD_TABLE;

			Columns.Add(ENT_ID_FIELD, typeof (Decimal));
			Columns.Add(MET_ID_FIELD, typeof (Decimal));

		}

		/// <summary>
		/// Add a new row to the table
		/// </summary>
		/// <param name="row">Dataset row
		public void addMinoriasEtnicasEntidad(DataRow row)
		{
			this.Rows.Add(row);
		}

	}

}